//
//  WHYBottomTabBar.h
//  News163
//
//  Created by 王洪运 on 15/12/29.
//  Copyright © 2015年 王洪运. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WHYBottomTabBar;

@protocol WHYBottomTabBarDelegate <NSObject>

/// WHYBottomTabBar点击了按钮
///
/// @param bottomTabBar WHYBottomTabBar
/// @param index        第几个按钮
-(void)bottomTabBar:(WHYBottomTabBar *) bottomTabBar didClickTabBarButtonWithIndex:(NSInteger)index;

@end

@interface WHYBottomTabBar : UIView

/// 代理
@property (weak, nonatomic) id<WHYBottomTabBarDelegate> delegate;

/// 创建BottomTabBarButton
/// @param normal   普通状态的图片名
/// @param selected 选中状态的图片名
-(void)addBottomTabBarButtonWithNormalImageName:(NSString *)normal selectedImageName:(NSString *)selected;

@end
